package com.thread.thread.Test;

public class Test {
	public static void main(String[] args) {
		Height height=new Height();
		height.setHeight(1);



		Person person=new CaiCai() ;
		person.setHeight(height);
		person.getHeight().setHeight(3);
		System.out.println(person.getHeight().getHeight());

		CaiCai caiCai=new CaiCai();
		caiCai.setHeight(height);
		System.out.println(caiCai.getHeight().getHeight());

		height.setHeight(2);
		System.out.println(caiCai.getHeight().getHeight());




	}
}
